<template>
  <view>
    <view style="padding: 40rpx" v-html="html"></view>
  </view>
</template>

<script>
import { xieyi } from '@/api/api'
  export default {
    data() {
      return {
        id: 1,
        html: ''
      }
    },
    onLoad(options) {
      if (options.id){
        // 服务协议
        this.id = options.id
      }
    },
    onShow() {
      this.getXieyi()
    },
    methods: {
      getXieyi() {
        xieyi(this.id).then(res => {
          this.html = res.data.content
        })
      }
    }
  }
</script>

<style>

</style>
